﻿using System;
namespace DeliveryManage.Model
{
	/// <summary>
	/// Pro_OrderGoods:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class Pro_OrderGoods
	{
		public Pro_OrderGoods()
		{}
		#region Model
		private int _id;
		private int _orderid=0;
		private int _goodsid=0;
		private string _goodsname="";
		private bool _isactivity= false;
		private int _buynum=1;
		private int _calcspec=1;
		private int _specnum=1;
		private decimal _price= 0.00M;
		private decimal _goodsamount= 0.00M;
		private decimal _addprice= 0.00M;
		private decimal _freight= 0.00M;
		private decimal _advancecharge= 0.00M;
		private decimal _invoicingcharge= 0.00M;
		private decimal _totalamount=0.00M;
		/// <summary>
		/// 自增ID
		/// </summary>
		public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
        /// <summary>
        /// 所属订单Id
        /// </summary>
        public int OrderId
		{
			set{ _orderid=value;}
			get{return _orderid;}
		}
        /// <summary>
        /// 商品编号Id
        /// </summary>
        public int GoodsId
		{
			set{ _goodsid=value;}
			get{return _goodsid;}
		}
        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName
		{
			set{ _goodsname=value;}
			get{return _goodsname;}
		}
        /// <summary>
        /// 是否活动价格0否1是
        /// </summary>
        public bool IsActivity
		{
			set{ _isactivity=value;}
			get{return _isactivity;}
		}
        /// <summary>
        /// 购买数量
        /// </summary>
        public int BuyNum
		{
			set{ _buynum=value;}
			get{return _buynum;}
		}
        /// <summary>
        /// 规格，1箱
        /// </summary>
        public int CalcSpec
		{
			set{ _calcspec=value;}
			get{return _calcspec;}
		}
        /// <summary>
        /// 数量，6瓶
        /// </summary>
        public int SpecNum
		{
			set{ _specnum=value;}
			get{return _specnum;}
		}
        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price
		{
			set{ _price=value;}
			get{return _price;}
		}
        /// <summary>
        /// 商品总价
        /// </summary>
        public decimal GoodsAmount
		{
			set{ _goodsamount=value;}
			get{return _goodsamount;}
		}
        /// <summary>
        /// 商品加价
        /// </summary>
        public decimal AddPrice
		{
			set{ _addprice=value;}
			get{return _addprice;}
		}
        /// <summary>
        /// 运费
        /// </summary>
        public decimal Freight
		{
			set{ _freight=value;}
			get{return _freight;}
		}
        /// <summary>
        /// 预付款金额
        /// </summary>
        public decimal AdvanceCharge
		{
			set{ _advancecharge=value;}
			get{return _advancecharge;}
		}
        /// <summary>
        /// 代收货款金额
        /// </summary>
        public decimal InvoicingCharge
		{
			set{ _invoicingcharge=value;}
			get{return _invoicingcharge;}
		}
        /// <summary>
        /// 实际总金额
        /// </summary>
        public decimal TotalAmount
		{
			set{ _totalamount=value;}
			get{return _totalamount;}
		}
		#endregion Model

		#region 附加显示
		/// <summary>
		/// 商品库存
		/// </summary>
		public int Stock { get; set; }
		/// <summary>
		/// 市场价
		/// </summary>
		public decimal NormalPrice { get; set; } = 0.00M;
		/// <summary>
		/// 成本价
		/// </summary>
		public decimal CostPrice { get; set; } = 0.00M;
        
        #endregion
    }
}

